package lyj.springcloud.feign.impl;

import com.lyj.springcloud.entities.CommonResult;
import com.lyj.springcloud.entities.Payment;
import lyj.springcloud.feign.FeignService;
import org.springframework.stereotype.Component;

/**
 * feign 调用异常兜底方法
 */
@Component
public class FeignServiceImpl implements FeignService {
    @Override
    public CommonResult<Payment> paymentSQL(String id) {
        return new CommonResult<>("44444","服务降级返回！" );
    }
}
